package com.finance.product;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 贷款产品消息
 */
@Entity
@Table(name = "loan_product_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoanProductMessage implements Serializable {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 标识
     */
    private String code;

    /**
     * 发送时间
     */
    private Date createTime;


    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 消息类型 1:待审核消息 2:CFO审核通过消息 3:CFO审核不通过消息 4:CEO审核通过消息 5:CEO审核不通过消息 6:修订cfo待审核消息 7:变更待审核消息 8:CFO审批通过消息 9:CFO审批不通过消息 10:CEO审批通过消息 11:CEO审批不通过消息 12:修订ceo待审核消息
     */
    private Integer type;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 1:平台人员 2:CFO 3:CEO
     */
    private Integer role;

    /**
     * 是否已读 1:未读 2:已读
     */
    private Integer isRead;

    /**
     * 是否已处理 1:未处理 2:已处理
     */
    private Integer isHandle;

    /**
     * 贷款产品标识
     */
    private String loanProductCode;






    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_TYPE = "type";

    public static final String COL_TITLE = "title";

    public static final String COL_CONTENT = "content";

    public static final String COL_ROLE = "role";

    public static final String COL_IS_READ = "is_read";

    public static final String COL_IS_HANDLE = "is_handle";

    public static final String COL_LOAN_PRODUCT_CODE = "loan_product_code";

}